package com.wtc.extend;

public class ExtendsExercise {
    public static void main(String[] args) {
        PC pc = new PC();
        NotePad notePad = new NotePad();
        pc.brand = "联想";
        notePad.color = "蓝色";

    }
}
class Computer {
    String CPU;
    String memory;
    String ssd;
    public void getDetails() {
        System.out.println("CPU型号：" + CPU + "，内存：" + memory + "，硬盘：" + ssd);
    }
}
class PC extends Computer {
    String brand;
}
class NotePad extends Computer {
    String color;
}
